package com.kingyea.app.market.applicationType.service;

import com.kingyea.app.market.applicationType.bean.ApplicationType;

import java.util.List;
import java.util.Map;

/**
 * @author
 * @version v1.0.0
 * @description ApplicationType 接口
 * @date Created in 2018-02-10 16:14:42
 */
public interface ApplicationTypeService {

    /**
     * 通过ID查找对象
     *
     * @param classCode
     * @return
     */
    ApplicationType getById(Integer classCode) throws Exception;

    /**
     * 列表
     *
     * @param applicationType
     * @return
     */
    Object list(Map<String, Object> applicationType) throws Exception;

    /**
     * 删除
     *
     * @param classCode
     * @return
     */
    int deleteById(String classCode) throws Exception;

    /**
     * 添加
     *
     * @param applicationType
     * @return
     */
    Object save(Map<String, Object> applicationType) throws Exception;

    /**
     * 更新
     *
     * @param applicationType
     * @return
     */
    ApplicationType update(ApplicationType applicationType) throws Exception;

    List<ApplicationType> getByMarket(String marketCode) throws Exception;
}
